home *** CD-ROM | disk | FTP | other *** search
/ Revista CD Expert 41 / CD Expert nº 41.iso / DReign2 / DR2Demo.exe / data1.cab / Files / missions / demo / Demo Mission 2.zwp / objective_shuttle_leaving.cfg < prev    next >
Encoding:
Text File  |  2000-09-01  |  1.3 KB  |  77 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 1997-99 Pandemic Studios
  4. //
  5. // Dark Reign II
  6. //
  7.  
  8. CreateObjectType("objective_shuttle_leaving", "Objective")
  9. {
  10.   GameObj();
  11.   ObjectiveObj()
  12.   {
  13.     Condition("AND")
  14.     {
  15.      Condition("Timer")
  16.      {
  17.       Time(5);
  18.      }
  19.      Condition("TagCount")
  20.      {
  21.       Tag("Shuttle")
  22.       {
  23.         Amount(0);
  24.         Operator(">");
  25.       }
  26.      }
  27.     Condition("TagCount")
  28.       {
  29.         Tag("AllTraitors")
  30.         {
  31.           Amount(0);
  32.           Operator(">");
  33.         }
  34.       }
  35.     Condition("VarConstInteger", "@.shuttleleaving", "==", 1);
  36.   }
  37.     Action()
  38.     {
  39.       GameMessage()
  40.       {
  41.         Message("msg_shuttle_leaving");
  42.       }
  43.       NewObjective("objective_shuttle_gone");
  44.     }
  45.   }
  46. }
  47.  
  48. CreateObjectType("objective_shuttle_gone", "Objective")
  49. {
  50.   GameObj();
  51.   ObjectiveObj()
  52.   {
  53.     Condition("AND")
  54.     {
  55.      Condition("Timer")
  56.       {
  57.         Time(40);
  58.       }
  59.      Condition("TagCount")
  60.      {
  61.       Tag("Shuttle")
  62.       {
  63.         Amount(0);
  64.         Operator(">");
  65.       }
  66.      }
  67.     }
  68.  
  69.     Action()
  70.     {
  71.       ObjectiveAbandoned("objective_destroy_shuttle");
  72.       NewObjective("cineractive_shuttle_gone");
  73.     }
  74.   }
  75. }
  76.  
  77.